//:C11:NoCopyConstruction.cpp
// Preventing copy-construction
class NoCC
{
    int i;
    NoCC(const NoCC &);   // No definition
    public:
        NoCC(int ii = 0) : i(ii){}  
};

void f(NoCC);
int main(void)
{
    NoCC n;
    // ! f(n);    // Error: copy-constructor called
    // ! NoCC n2 = n;    // Error: c-c called
    // ! NoCC n3(n);    // Error: c-c called
}
